Einhugur macOS Bridge plugin.

EinhugurCoreBridge.NSNumber Class

An object wrapper for NSNumber Cocoa class which is for primitive scalar numeric values.

EinhugurCoreBridge.NSObject
   NSNumber

class EinhugurCoreBridge.NSNumber implements

EinhugurCoreBridge.INSCopying

Constructors

NSNumber (private) This constructor is private, use the From methods to construct instance of this class, like FromBoolean, FromDouble, etc.

Properties

BooleanValueReturns Boolean value from the NSNumber.
ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
DoubleValueReturns Double value from the NSNumber.
Handle (Inherited) Returns Integer handle to the native NSObject structure.
IntegerValueReturns Integer value from the NSNumber.
SingleValueReturns Single value from the NSNumber.

Methods

shared CastDoes deep cast on incoming NSObject to NSNumber
EqualReturns true if the number is equal to the one passed in.
shared FromBoolean Constructs NSNumber from Boolean.
shared FromDouble Constructs NSNumber from Double.
shared FromIntegerConstructs NSNumber from Integer.
shared FromIntegerPtrConstructs NSNumber object from Integer handle coming from declares or 3rd party plugin.
shared FromSingleConstructs NSNumber from Single.
shared IsNSNumberReturns true if the NSObject under the hood is NSNumber or derived from NSNumber.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject

Constants

Version = 5.0 (Inherited)

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • iOS
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit